//
//  CarDetailResdmode.m
//  CarTown
//
//  Created by xionghao on 15/8/21.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "CarDetailResdmode.h"
#import "CarDetail.h"
@implementation CarDetailResdmode
+(instancetype)CardetailWithDict:(NSDictionary *)dict{
    CarDetailResdmode *cardetail=[[CarDetailResdmode alloc]init];
    [cardetail setValuesForKeysWithDictionary:dict];
    NSMutableArray *marray=[NSMutableArray array];
    for (NSDictionary *cardetaildict in cardetail.data) {
        CarDetail *detailmode=[CarDetail detailWithDict:cardetaildict];
        [marray addObject:detailmode];
    }
    cardetail.data=marray;
    return cardetail;
}
@end
